import React,{ Component } from 'react';
import './card.scss';
import {
Link
} from 'react-router-dom';
export default class Card extends Component{
	constructor (props) {
		super(props)
	}
	render(){
		return(
			<Link to={
				{
					pathname: `${window.baseUrl}/clinetDetails`,
					state: {
						account_user_id: this.props.card.caller_id
					}
				}
			}>
			<div className="card">
				<img src={this.props.card.avatar} className="card_img"/>
				<p className="card_jiao"></p>
				<div className="card_title">
					<span className="card_name">{this.props.card.nickname}</span> 访问了你的 <span>{this.props.card.web_page}</span>，马上与TA沟通>> 
				</div>
			</div>
			</Link>
		)
	}
}